Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import pdfs #125

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Import pdfs #125

wants to merge 13 commits into from

Conversation

pihart
Copy link
Collaborator

@pihart pihart commented Mar 15, 2021

Resolves #69

@pihart
Copy link
Collaborator Author

pihart commented Mar 15, 2021

Currently doesn't give right output for LaTeX documents (this seems to be a font issue), works well on some qboard documents, errors on other qboard documents with

TypeError
Cannot read property 'appendChild' of null
Call Stack
 push../node_modules/fabric/dist/fabric.js.fabric.ElementsParser.push../node_modules/fabric/dist/fabric.js.proto.resolveClipPath
  main.app.js:9557:32
 push../node_modules/fabric/dist/fabric.js.fabric.ElementsParser.push../node_modules/fabric/dist/fabric.js.proto.resolveClipPath
  main.app.js:9578:14
 undefined
  main.app.js:9510:13
 undefined
  main.app.js:25458:19
 HTMLImageElement.onLoadCallback
  main.app.js:5530:30

and on other documents with

Error
[object ProgressEvent]
Call Stack
 rejectionHandler
  main.app.js:1140:21

which expands to

ProgressEvent {isTrusted: true, lengthComputable: true, loaded: 0, total: 2956587, type: "error", …}
bubbles: false
cancelBubble: false
cancelable: false
composed: false
currentTarget: FileReader
  error: DOMException: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.
  onabort: null
  onerror: ƒ ()
  onload: () => { resolve(reader.result); }
  onloadend: null
  onloadstart: null
  onprogress: null
  readyState: 2
  result: null
  __proto__: FileReader
defaultPrevented: false
eventPhase: 0
isTrusted: true
lengthComputable: true
loaded: 0
path: []
returnValue: true
srcElement: FileReader
  error: DOMException: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.
  onabort: null
  onerror: ƒ ()
  onload: () => { resolve(reader.result); }
  onloadend: null
  onloadstart: null
  onprogress: null
  readyState: 2
  result: null
  __proto__: FileReader
target: FileReader
  error: DOMException: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.
  onabort: null
  onerror: ƒ ()
  onload: () => { resolve(reader.result); }
  onloadend: null
  onloadstart: null
  onprogress: null
  readyState: 2
  result: null
  __proto__: FileReader
timeStamp: 12414.589999942109
total: 2956587
type: "error"
__proto__: ProgressEvent

@pihart pihart force-pushed the import-pdf branch 3 times, most recently from f45413f to 98ccea3 Compare March 22, 2021 00:22
@cjquines
Copy link
Owner

cjquines commented Jun 9, 2021

bumping this; this seems relevant for promys xp

@pihart pihart force-pushed the import-pdf branch 3 times, most recently from 40e0cfb to 9c6a1c4 Compare June 12, 2021 20:53
@pihart pihart mentioned this pull request Jun 12, 2021
@pihart
Copy link
Collaborator Author

pihart commented Jun 12, 2021

Wait for #180. Drop from ccb68cf to afee6f0 and rebase d6a8b98 on top of the result of #180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import pdf
2 participants